from django.urls import path, re_path

from apps import views

urlpatterns = [
    path('', views.hello, name='hello'),
    path('addperson', views.add_person, name='add_person'),
    path('addidcard/', views.add_idcard, name='add_id_card'),
    path('bindcard/', views.bind_card, name='bind_card'),
    path('removeperson/', views.remove_person, name='remove_person'),
    path('removeidcard/', views.remove_idcard, name='remove_idcard'),
    path('getperson/', views.get_person, name='get_person'),
    path('getidcard/', views.get_idcard, name='get_idcard'),
    path('addcustomer/', views.add_customer, name='add_customer'),
    path('addgoods/', views.add_goods, name='add_goods'),
    path('addtocart/', views.add_to_cart, name='add_to_cart'),
    re_path('getgoodslist/(?P<customerid>\d+)/', views.get_goods_list, name='get_goods_list'),
    path('addcat/', views.add_cat, name='add_cat'),
    path('adddog/', views.add_dog, name='add_dog'),
]